import request from '@/utils/request';

const URL = {
  getUrl: '/api/promotion/nologin/v1/pageView/calculation',
  addUrl: '/api/common/add/basic',
};

export async function postAction(url: string, params: any) {
  return request(URL[url], {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
